package com.itheima.mapper;

import com.itheima.entity.Clazz;
import com.itheima.entity.EmpParam;
import com.itheima.entity.Student;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ClazzsMapper {

    List<Clazz> list(EmpParam empParam);
    //根据班级id删除班级信息
    void deleteById(String id);
    @Select("select *from student where clazz_id=#{id}")
    List<Student> selectStudentById(String id);
    //添加班级
    void addClazz(Clazz clazz);
    //根据id查询班级信息
    Clazz findById(String id);
    //编辑员工信息
    void updateClazz(Clazz clazz);
    //查询所有班级
    List<Clazz> getAllClazzs();

}
